package com.rentcars.service;

import com.github.pagehelper.PageInfo;
import com.rentcars.entity.Role;

public interface RoleService {
    /**
     * 通过分页信息角色信息
     * @return
     */
    PageInfo<Role> selectRoles(Integer pageNo, Integer pageSize);

    Role selectById(Integer id);

    void deleteRole(Integer id);

    void deleteAllRoles(Integer[] id);

    int addRole(Role role);


    int updateRole(Role role);


}
